Escapes id for the use in jQuery.

<div class="definition">
    escapeId(id)
</div>

<div class="arguments">
    <table>
    <tr>
        <td>id</td>
        <td><b>string</b>, id to escape</td>
    </tr>
    </table>
</div>

If you use jQuery to want to use "!"#$%&\'()*+,./:;<=>?@[\]^`{|}~ " in element ids you need to escape them. 

<textarea class="javascript">
var a = w2utils.escapeId('id.with.levels and spaces');
console.log(a);
</textarea>